package global;

public class ArgumentParam {
	
	private String name;
	private String defaultValue;
	private String currentValue;
	private ArgumentType type;
	private boolean shouldBePassedToJob;
	
	public ArgumentParam(String name, String defaultValue, ArgumentType type, boolean shouldBePassedToJob) {
		super();
		this.name = name;
		this.defaultValue = defaultValue;
		this.type = type;
		this.shouldBePassedToJob = shouldBePassedToJob;
		setCurrentValue(defaultValue);
	}

	public String getCurrentValue() {
		return currentValue;
	}

	public void setCurrentValue(String currentValue) {
		this.currentValue = currentValue;
	}

	public String getName() {
		return name;
	}

	public boolean isRequired() {
		return defaultValue.length() == 0;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public ArgumentType getType() {
		return type;
	}
	
	public boolean getShouldBePassedToJob() {
		return shouldBePassedToJob;
	}

}
